import request from '@/utils/request'
// 角色管理
export function getList(param) {
  return request({
    url: '/role/manage.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 角色删除
export function deleteRole(param) {
  return request({
    url: '/role/delete.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 角色编辑
export function editRole(param) {
  return request({
    url: '/role/toEdit.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 新增保存
export function saveRole(param) {
  return request({
    url: '/role/save.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 角色修改保存
export function changeRole(param) {
  return request({
    url: '/role/update.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 检查角色是否重复
export function checkRole(param) {
  return request({
    url: '/role/isNotExist.do',
    method: 'post',
    data: {
      param: param
    }
  })
}
